import request from "@/api/request.js";
export function cs(params) {
	return request.post('http://api.jfbym.com/api/YmServer/customApi', params, {
		header: {
			'Content-Type': 'application/json',
			'Accept': '*/*',
			'Accept-Language': 'zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6',
		}
	});
}
export function getCode(params) {
	return request.post('api-api/captcha/gen', params, {
		header: {
			'Content-Type': 'application/json',
			'Accept': '*/*',
			'Accept-Language': 'zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6',
		}
	});
}
export function setCode(params) {
	return request.post('api-api/captcha/check', params, {
		header: {
			'Content-Type': 'application/json;charset=UTF-8',
			'Accept': '*/*',
			'Accept-Language': 'zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6',
		}
	});
}
export function getTimeFrame(params) {
    return request.get('api/get_time_frame', {
        params: params
    });
}